package com.wsit.controller;

import com.wsit.pojo.Result;
import com.wsit.pojo.Tripartite;
import com.wsit.service.TripartiteService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("/tripartite")
@RestController
@RequestMapping("/tripartite")
/**
 * 犬种信息相关接口
 */

public class TripartiteController {

    @Autowired
    private TripartiteService tripartiteService;


    @ApiOperation(value = "", notes = "", httpMethod = "GET")
    @GetMapping
    public Result tripartite() {
        List<Tripartite> list =tripartiteService.tripartite();
        return Result.success(list);
    }


}
